package ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.fy.fyzf.R;
import com.fy.fyzf.base.BaseActivity;
import com.fy.fyzf.base.BasePresenter;

import ui.fragment.AllHousingFragment;
import ui.fragment.AllHousingFragment1;

public class AllHousingActivity extends BaseActivity {

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_all_housing;
    }

    @Override
    public void initView() {
        super.initView();
        setTitleName("全部房源");
        int id = getIntent().getIntExtra("id", -1);//customerId  客源id
        int type = getIntent().getIntExtra("type", -1);
        AllHousingFragment allHousingFragment = AllHousingFragment.newInstance(id, type);
        getSupportFragmentManager().beginTransaction().add(R.id.framlayout, allHousingFragment).commit();
    }

    public void finishActivity(){
        finish();
    }
}